package com.holly.common.utils;

import android.text.TextUtils;

/**
 * 2017/4/24 <br/>
 *
 * @author Joey Huang QQ:273179370）
 */
public class NumberUtils {
    public static double getDouble(String s) {
        if (TextUtils.isEmpty(s)) {
            return 0;
        }
        try {
            return Double.parseDouble(s);
        } catch (NumberFormatException e) {
            return 0;
        }
    }
}
